import 'package:dio/dio.dart';

class Course {
  final Dio dio;

  Course(this.dio);

  // 广告列表 - 首页
  Future<dynamic> getCourseList() async {
    Response res = await dio.get('/front/course/getAllCourse');

    List courseList = res.data['content'];
    return courseList;
  }
}